#ifndef _NETWORKEXCEPTION_H_
#define _NETWORKEXCEPTION_H_

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

#pragma once
#include <Windows.h>
#include <sstream>
#include <string>

class NetworkException
{
public:
	NetworkException(int);
	NetworkException(std::string);
	virtual ~NetworkException();
	virtual std::string getMessage();
	int getErrorCode();

private:
	std::string getErrorMessage(int);
	int errorCode;
	std::string customMessage;
	static int NO_ERROR_CODE;
};

#endif
